<?php

	include 'func/customerInfo.php';
	include 'func/func.php';
	session_start();
	
	include_once ('sys_application.php');
	//$_SESSION['username'] = 'admin';
	
	if (empty($_SESSION['login_id']) || $_SESSION['user_MGM_id'] != $_SESSION['login_id']) {
		header('Location: login.php');
	}
	
	$sysApps = new sysApps();
	
	$page = $_REQUEST['page'];
	
/*	$included_files = get_included_files();

	foreach ($included_files as $filename) {
		echo "$filename\n";
	}*/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
</head>

<body>
<div id="container">
    <?php include 'apps/header.php'?>
    
    <div id="body">
 		
        <?php include 'apps/menu-members.php'?>
        <div id="content-page"><?php $sysApps->getPage($page);?></div>   	
    </div>
    
    <?php include 'apps/footer.php'?>
</div>

<?php include ('console.php');?>
</body>
</html>